export const model = {
    id: undefined,
    userId: undefined,
    newPassword: undefined,
    encryptKey: undefined,

}
export const rules = {
    newPassword: [
        { required: true, message: '请输入新密码', trigger: 'blur' },
    ],
    title: [
        { required: true, message: '请输入标题', trigger: 'blur' },
    ],
    useStatus: [
        { required: true, message: '请输入状态', trigger: 'blur' },
    ],
}
export const columns = [
    {
        title: '序号',
        dataIndex: 'id',
        width: 70,
        align: 'center',
        customRender: (text, record, index) => {
            return index + 1;
        },
    },
    {
        title: '标题',
        dataIndex: 'title',
        key: 'title',
        width: 120,
        align: 'center',
        ellipsis: true,
    },
    {
        title: '使用状态',
        dataIndex: 'useStatus',
        key: 'useStatus',
        width: 80,
        align: 'center',
        scopedSlots: { customRender: 'useStatus' },
    },
    {
        title: '更新人',
        dataIndex: 'updateBy',
        key: 'updateBy',
        width: 80,
        ellipsis: true,
        align: 'center',
    },
    {
        title: '更新时间',
        dataIndex: 'updateTime',
        key: 'updateTime',
        width: 120,
        align: 'center',
    },
    {
        title: '创建人',
        dataIndex: 'createBy',
        key: 'createBy',
        width: 80,
        align: 'center',
        ellipsis: true,
    },
    {
        title: '创建时间',
        dataIndex: 'createTime',
        key: 'createTime',
        width: 120,
        align: 'center',
    },
    {
        title: '操作',
        key: 'action',
        width: 200,
        fixed: 'right',
        scopedSlots: { customRender: 'action' },
    },
];